package com.xishu.entity.payment;

import com.xishu.entity.AbstractEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

@Entity(name = "payment_check")
@Table(indexes = {@Index(columnList = "shopId"), @Index(columnList = "createTime")})
public class PaymentCheck extends AbstractEntity {
    @ApiModelProperty(value = "支付ID")
    private String paymentId;

    @ApiModelProperty(value = "分店的ID")
    private Long shopId;

    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    public PaymentCheck() {
    }

    public PaymentCheck(String paymentId, Long shopId, Long orderId) {
        this.paymentId = paymentId;
        this.shopId = shopId;
        this.orderId = orderId;
    }

    public String getPaymentId() {
        return paymentId;
    }

    public void setPaymentId(String paymentId) {
        this.paymentId = paymentId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }
}
